import React from "react";
import style from "./style.less";

const Wrap = props => {
  const { type = "1" } = props;
  return (
    <div className={`${style.wrap} ${type === "1" ? "" : style.type2}`}>
      <div className={style.container} style={{ height: props.height + "px" }}>
        {props.children}
      </div>
    </div>
  );
};

export default Wrap;
